.class public Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;
.super Ljava/lang/Object;
.source "BurstlyAdSize.java"


# static fields
.field public static final BANNER:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

.field public static final INTERSTITIAL:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

.field public static final LEADERBOARD:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

.field public static final REACTANGLE:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

.field public static final UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;


# instance fields
.field private mAdHeight:I

.field private mAdWidth:I

.field private mIsInterstitial:Z


# direct methods
.method static constructor <clinit>()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 14
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    const/16 v1, 0x140

    const/16 v2, 0x35

    invoke-direct {v0, v1, v2, v3}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(IIZ)V

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->BANNER:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 19
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    const/16 v1, 0x12c

    const/16 v2, 0xfa

    invoke-direct {v0, v1, v2, v3}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(IIZ)V

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->REACTANGLE:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 24
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    const/16 v1, 0x2d8

    const/16 v2, 0x5a

    invoke-direct {v0, v1, v2, v3}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(IIZ)V

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->LEADERBOARD:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 29
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {v0, v3, v3, v3}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(IIZ)V

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->UNKNOWN:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    .line 34
    new-instance v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    const/4 v1, 0x1

    invoke-direct {v0, v3, v3, v1}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(IIZ)V

    sput-object v0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->INTERSTITIAL:Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    return-void
.end method

.method public constructor <init>(II)V
    .locals 1
    .parameter "adHeight"
    .parameter "adWidth"

    .prologue
    .line 57
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 58
    iput p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    .line 59
    iput p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    .line 60
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mIsInterstitial:Z

    .line 61
    return-void
.end method

.method private constructor <init>(IIZ)V
    .locals 0
    .parameter "adWidth"
    .parameter "adHeight"
    .parameter "isInterstitial"

    .prologue
    .line 70
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 71
    iput p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    .line 72
    iput p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    .line 73
    iput-boolean p3, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mIsInterstitial:Z

    .line 74
    return-void
.end method

.method public static parseAdSize(Ljava/lang/String;)Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;
    .locals 6
    .parameter "adSize"

    .prologue
    const/4 v5, -0x1

    .line 123
    if-eqz p0, :cond_0

    const-string v3, "x"

    invoke-virtual {p0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 124
    const-string v3, "x"

    invoke-virtual {p0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 125
    .local v1, params:[Ljava/lang/String;
    const/4 v3, 0x0

    aget-object v3, v1, v3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/burstly/lib/util/Utils;->getIntValue(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 126
    .local v2, width:I
    const/4 v3, 0x1

    aget-object v3, v1, v3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/burstly/lib/util/Utils;->getIntValue(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v0

    .line 127
    .local v0, height:I
    if-eq v2, v5, :cond_0

    if-eq v0, v5, :cond_0

    .line 128
    new-instance v3, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;

    invoke-direct {v3, v2, v0}, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;-><init>(II)V

    .line 131
    .end local v0           #height:I
    .end local v1           #params:[Ljava/lang/String;
    .end local v2           #width:I
    :goto_0
    return-object v3

    :cond_0
    const/4 v3, 0x0

    goto :goto_0
.end method


# virtual methods
.method public getHeight()I
    .locals 1

    .prologue
    .line 105
    iget v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    return v0
.end method

.method public getWidth()I
    .locals 1

    .prologue
    .line 98
    iget v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    return v0
.end method

.method public isInterstitial()Z
    .locals 1

    .prologue
    .line 91
    iget-boolean v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mIsInterstitial:Z

    return v0
.end method

.method public setAdSize(II)V
    .locals 0
    .parameter "adWidth"
    .parameter "adHeight"

    .prologue
    .line 83
    iput p1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    .line 84
    iput p2, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    .line 85
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 110
    iget v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    if-nez v0, :cond_1

    .line 111
    :cond_0
    const/4 v0, 0x0

    .line 113
    :goto_0
    return-object v0

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdWidth:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "x"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/burstly/lib/conveniencelayer/BurstlyAdSize;->mAdHeight:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
